

package com.hazelcast.map.impl.recordstore.expiry;

/**
 * Represents expiry status of a key.
 * <p>
 * There are 3 possible status:
 * <ul>
 *      <li>
 *          {@link ExpiryReason#TTL}: Time-to-live
 *          seconds has passed and key is not reachable.
 *      </li>
 *      <li>
 *          {@link ExpiryReason#MAX_IDLE_SECONDS}: Max-idle
 *          seconds has passed and key is not reachable.
 *      </li>
 *      <li>
 *          {@link ExpiryReason#NOT_EXPIRED}: Key is reachable.
 *      </li>
 * </ul>
 */
public enum ExpiryReason {
    TTL, MAX_IDLE_SECONDS, NOT_EXPIRED
}
